package test7;

import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Rectangle rect=new Rectangle();
        Scanner sc=new Scanner(System.in);
        rect.setXy(sc.nextDouble(),sc.nextDouble());
        System.out.println("面积为"+rect.getArea());
        System.out.println("周长为"+rect.getPerimeter());
    }
}
